<?php
/**
 * @author: Hua Phuoc Truong
 * @created: 10:34 AM 10/4/13
 * @copyright: 2013
 * @version: 1.0
 */

include_once('ZCollection.php');

class ZPostCollection extends ZCollection {
    /**
     * Get Message Item Index
     * @param $index
     * @return ZMessageItem
     */
    public function getIndex($index){
        return $this->items[$index];
    }

    /**
     * Add a message
     * @param $item ZMessageItem
     */
    public function addItem($item){
        $this->items[] = $item;
    }

    /**
     * Get array of items
     * @return ZMessageItem[]
     */
    public function getItems() {
        return $this->items;
    }
}